aboutsummaryrefslogtreecommitdiffstats
path: root/fs/direct-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r--fs/direct-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c
index e82adc2debb7..45ee3f6cc08d 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -242,7 +242,7 @@ static int dio_complete(struct dio *dio, loff_t offset, int ret)
242 242
243 if (dio->flags & DIO_LOCKING) 243 if (dio->flags & DIO_LOCKING)
244 /* lockdep: non-owner release */ 244 /* lockdep: non-owner release */
245 up_read_non_owner(&dio->inode->i_alloc_sem); 245 anon_up_read_non_owner(&dio->inode->i_alloc_sem);
246 246
247 if (ret == 0) 247 if (ret == 0)
248 ret = dio->page_errors; 248 ret = dio->page_errors;
@@ -1184,7 +1184,7 @@ __blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode,
1184 * Will be released at I/O completion, possibly in a 1184 * Will be released at I/O completion, possibly in a
1185 * different thread. 1185 * different thread.
1186 */ 1186 */
1187 down_read_non_owner(&inode->i_alloc_sem); 1187 anon_down_read_non_owner(&inode->i_alloc_sem);
1188 } 1188 }
1189 1189
1190 /* 1190 /*