diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-07-22 08:00:43 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-07-22 08:00:43 +0100 |
commit | 76db3435926875dc5d59b523299562705a9137a4 (patch) | |
tree | 2924e4c0d55b2442c46c5a784e1464674813903a | |
parent | a395f12adb374f1766c77b9f55ff79a3dd68c686 (diff) | |
download | xen-76db3435926875dc5d59b523299562705a9137a4.tar.gz xen-76db3435926875dc5d59b523299562705a9137a4.tar.bz2 xen-76db3435926875dc5d59b523299562705a9137a4.zip |
fs-back: fix compilation error.
XC_PAGE_SIZE and XC_PAGE_MASK should be used instead of PAGE_SIZE
and PAGE_MASK.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
-rw-r--r-- | tools/fs-back/fs-backend.c | 2 | ||||
-rw-r--r-- | tools/fs-back/fs-ops.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/fs-back/fs-backend.c b/tools/fs-back/fs-backend.c index 22686b82b2..cdf3edbf0b 100644 --- a/tools/fs-back/fs-backend.c +++ b/tools/fs-back/fs-backend.c @@ -239,7 +239,7 @@ static void handle_connection(int frontend_dom_id, int export_id, char *frontend mount->dom_id, mount->gref, PROT_READ | PROT_WRITE); - BACK_RING_INIT(&mount->ring, sring, PAGE_SIZE); + BACK_RING_INIT(&mount->ring, sring, XC_PAGE_SIZE); mount->nr_entries = mount->ring.nr_ents; for (i = 0; i < MAX_FDS; i++) mount->fds[i] = -1; diff --git a/tools/fs-back/fs-ops.c b/tools/fs-back/fs-ops.c index d55e956524..6315a4d975 100644 --- a/tools/fs-back/fs-ops.c +++ b/tools/fs-back/fs-ops.c @@ -515,9 +515,9 @@ void dispatch_list(struct mount *mount, struct fsif_request *req) /* If there was any error with reading the directory, errno will be set */ error_code = errno; /* Copy file names of the remaining non-NULL dirents into buf */ - assert(NAME_MAX < PAGE_SIZE >> 1); + assert(NAME_MAX < XC_PAGE_SIZE >> 1); while(dirent != NULL && - (PAGE_SIZE - ((unsigned long)buf & PAGE_MASK) > NAME_MAX)) + (XC_PAGE_SIZE - ((unsigned long)buf & XC_PAGE_MASK) > NAME_MAX)) { int curr_length = strlen(dirent->d_name) + 1; |