diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
| commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
| tree | 50c101806f4d3b6585222dda060559eb4f3e005a /include/linux/nfs_page.h | |
| parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
| parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'include/linux/nfs_page.h')
| -rw-r--r-- | include/linux/nfs_page.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index da2e077b65e2..66e2ed658527 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h | |||
| @@ -79,9 +79,7 @@ extern void nfs_clear_page_writeback(struct nfs_page *req); | |||
| 79 | static inline int | 79 | static inline int |
| 80 | nfs_lock_request_dontget(struct nfs_page *req) | 80 | nfs_lock_request_dontget(struct nfs_page *req) |
| 81 | { | 81 | { |
| 82 | if (test_and_set_bit(PG_BUSY, &req->wb_flags)) | 82 | return !test_and_set_bit(PG_BUSY, &req->wb_flags); |
| 83 | return 0; | ||
| 84 | return 1; | ||
| 85 | } | 83 | } |
| 86 | 84 | ||
| 87 | /* | 85 | /* |
| @@ -125,9 +123,7 @@ nfs_list_remove_request(struct nfs_page *req) | |||
| 125 | static inline int | 123 | static inline int |
| 126 | nfs_defer_commit(struct nfs_page *req) | 124 | nfs_defer_commit(struct nfs_page *req) |
| 127 | { | 125 | { |
| 128 | if (test_and_set_bit(PG_NEED_COMMIT, &req->wb_flags)) | 126 | return !test_and_set_bit(PG_NEED_COMMIT, &req->wb_flags); |
| 129 | return 0; | ||
| 130 | return 1; | ||
| 131 | } | 127 | } |
| 132 | 128 | ||
| 133 | static inline void | 129 | static inline void |
| @@ -141,9 +137,7 @@ nfs_clear_commit(struct nfs_page *req) | |||
| 141 | static inline int | 137 | static inline int |
| 142 | nfs_defer_reschedule(struct nfs_page *req) | 138 | nfs_defer_reschedule(struct nfs_page *req) |
| 143 | { | 139 | { |
| 144 | if (test_and_set_bit(PG_NEED_RESCHED, &req->wb_flags)) | 140 | return !test_and_set_bit(PG_NEED_RESCHED, &req->wb_flags); |
| 145 | return 0; | ||
| 146 | return 1; | ||
| 147 | } | 141 | } |
| 148 | 142 | ||
| 149 | static inline void | 143 | static inline void |
