summaryrefslogtreecommitdiffstats
path: root/fs/afs/cell.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-11-25 07:58:25 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2017-11-25 07:58:25 -1000
commitf61ec2c97cf8a517cd5714efc919138a9d8991cf (patch)
treef2d36fc8ecf749c739551a54b5ee6eb93c0255ba /fs/afs/cell.c
parent7753ea09640807104c8e353f6d5dc47ee55307cf (diff)
parent43dd388b21c722616413781bd434522376e117cc (diff)
downloadop-kernel-dev-f61ec2c97cf8a517cd5714efc919138a9d8991cf.zip
op-kernel-dev-f61ec2c97cf8a517cd5714efc919138a9d8991cf.tar.gz
Merge tag 'afs-fixes-20171124' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
Pull AFS fixes from David Howells: - Make AFS file locking work again. - Don't write to a page that's being written out, but wait for it to complete. - Do d_drop() and d_add() in the right places. - Put keys on error paths. - Remove some redundant code. * tag 'afs-fixes-20171124' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs: afs: remove redundant assignment of dvnode to itself afs: cell: Remove unnecessary code in afs_lookup_cell afs: Fix signal handling in some file ops afs: Fix some dentry handling in dir ops and missing key_puts afs: Make afs_write_begin() avoid writing to a page that's being stored afs: Fix file locking
Diffstat (limited to 'fs/afs/cell.c')
-rw-r--r--fs/afs/cell.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/afs/cell.c b/fs/afs/cell.c
index 1858c91..9bb921d 100644
--- a/fs/afs/cell.c
+++ b/fs/afs/cell.c
@@ -207,13 +207,8 @@ struct afs_cell *afs_lookup_cell(struct afs_net *net,
rcu_read_lock();
cell = afs_lookup_cell_rcu(net, name, namesz);
rcu_read_unlock();
- if (!IS_ERR(cell)) {
- if (excl) {
- afs_put_cell(net, cell);
- return ERR_PTR(-EEXIST);
- }
+ if (!IS_ERR(cell))
goto wait_for_cell;
- }
}
/* Assume we're probably going to create a cell and preallocate and
OpenPOWER on IntegriCloud