diff options
Diffstat (limited to 'fs/nfs/file.c')
| -rw-r--r-- | fs/nfs/file.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 43164fe86069..78460657f5cb 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
| @@ -128,9 +128,7 @@ nfs_file_open(struct inode *inode, struct file *filp) | |||
| 128 | return res; | 128 | return res; |
| 129 | 129 | ||
| 130 | nfs_inc_stats(inode, NFSIOS_VFSOPEN); | 130 | nfs_inc_stats(inode, NFSIOS_VFSOPEN); |
| 131 | lock_kernel(); | ||
| 132 | res = nfs_open(inode, filp); | 131 | res = nfs_open(inode, filp); |
| 133 | unlock_kernel(); | ||
| 134 | return res; | 132 | return res; |
| 135 | } | 133 | } |
| 136 | 134 | ||
| @@ -398,9 +396,7 @@ static int nfs_write_end(struct file *file, struct address_space *mapping, | |||
| 398 | zero_user_segment(page, pglen, PAGE_CACHE_SIZE); | 396 | zero_user_segment(page, pglen, PAGE_CACHE_SIZE); |
| 399 | } | 397 | } |
| 400 | 398 | ||
| 401 | lock_kernel(); | ||
| 402 | status = nfs_updatepage(file, page, offset, copied); | 399 | status = nfs_updatepage(file, page, offset, copied); |
| 403 | unlock_kernel(); | ||
| 404 | 400 | ||
| 405 | unlock_page(page); | 401 | unlock_page(page); |
| 406 | page_cache_release(page); | 402 | page_cache_release(page); |
