diff options
author | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-01-24 15:34:47 -0500 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-01-24 15:34:47 -0500 |
commit | 0a0fc0ddbe732779366ab6b1b879f62195e65967 (patch) | |
tree | 7b42490a676cf39ae0691b6859ecf7fd410f229b /fs/afs | |
parent | 4d5dbd0945d9e0833dd7964a3d6ee33157f7cc7a (diff) | |
parent | 3ee68c4af3fd7228c1be63254b9f884614f9ebb2 (diff) |
Merge with /home/shaggy/git/linus-clean/
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/callback.c | 1 | ||||
-rw-r--r-- | fs/afs/cmservice.c | 2 | ||||
-rw-r--r-- | fs/afs/dir.c | 2 | ||||
-rw-r--r-- | fs/afs/volume.h | 4 |
4 files changed, 4 insertions, 5 deletions
diff --git a/fs/afs/callback.c b/fs/afs/callback.c index 2fd62f89ae01..9cb206e9d4be 100644 --- a/fs/afs/callback.c +++ b/fs/afs/callback.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "server.h" | 19 | #include "server.h" |
20 | #include "vnode.h" | 20 | #include "vnode.h" |
21 | #include "internal.h" | 21 | #include "internal.h" |
22 | #include "cmservice.h" | ||
22 | 23 | ||
23 | /*****************************************************************************/ | 24 | /*****************************************************************************/ |
24 | /* | 25 | /* |
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c index 0a57fd7c726f..9eef6bf156ab 100644 --- a/fs/afs/cmservice.c +++ b/fs/afs/cmservice.c | |||
@@ -118,7 +118,7 @@ static int kafscmd(void *arg) | |||
118 | _SRXAFSCM_xxxx_t func; | 118 | _SRXAFSCM_xxxx_t func; |
119 | int die; | 119 | int die; |
120 | 120 | ||
121 | printk("kAFS: Started kafscmd %d\n", current->pid); | 121 | printk(KERN_INFO "kAFS: Started kafscmd %d\n", current->pid); |
122 | 122 | ||
123 | daemonize("kafscmd"); | 123 | daemonize("kafscmd"); |
124 | 124 | ||
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 6682d6d7f294..5c61c24dab2a 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c | |||
@@ -137,7 +137,7 @@ static inline void afs_dir_check_page(struct inode *dir, struct page *page) | |||
137 | #endif | 137 | #endif |
138 | 138 | ||
139 | /* determine how many magic numbers there should be in this page */ | 139 | /* determine how many magic numbers there should be in this page */ |
140 | latter = dir->i_size - (page->index << PAGE_CACHE_SHIFT); | 140 | latter = dir->i_size - page_offset(page); |
141 | if (latter >= PAGE_SIZE) | 141 | if (latter >= PAGE_SIZE) |
142 | qty = PAGE_SIZE; | 142 | qty = PAGE_SIZE; |
143 | else | 143 | else |
diff --git a/fs/afs/volume.h b/fs/afs/volume.h index 1e691889c4c9..bfdcf19ba3f3 100644 --- a/fs/afs/volume.h +++ b/fs/afs/volume.h | |||
@@ -18,8 +18,6 @@ | |||
18 | #include "kafsasyncd.h" | 18 | #include "kafsasyncd.h" |
19 | #include "cache.h" | 19 | #include "cache.h" |
20 | 20 | ||
21 | #define __packed __attribute__((packed)) | ||
22 | |||
23 | typedef enum { | 21 | typedef enum { |
24 | AFS_VLUPD_SLEEP, /* sleeping waiting for update timer to fire */ | 22 | AFS_VLUPD_SLEEP, /* sleeping waiting for update timer to fire */ |
25 | AFS_VLUPD_PENDING, /* on pending queue */ | 23 | AFS_VLUPD_PENDING, /* on pending queue */ |
@@ -115,7 +113,7 @@ struct afs_volume | |||
115 | struct cachefs_cookie *cache; /* caching cookie */ | 113 | struct cachefs_cookie *cache; /* caching cookie */ |
116 | #endif | 114 | #endif |
117 | afs_volid_t vid; /* volume ID */ | 115 | afs_volid_t vid; /* volume ID */ |
118 | afs_voltype_t __packed type; /* type of volume */ | 116 | afs_voltype_t type; /* type of volume */ |
119 | char type_force; /* force volume type (suppress R/O -> R/W) */ | 117 | char type_force; /* force volume type (suppress R/O -> R/W) */ |
120 | unsigned short nservers; /* number of server slots filled */ | 118 | unsigned short nservers; /* number of server slots filled */ |
121 | unsigned short rjservers; /* number of servers discarded due to -ENOMEDIUM */ | 119 | unsigned short rjservers; /* number of servers discarded due to -ENOMEDIUM */ |