]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2_atomic_open(): fix O_EXCL|O_CREAT handling on cold dcache
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 10 Mar 2020 13:31:41 +0000 (09:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Mar 2020 22:21:24 +0000 (18:21 -0400)
commit72df99c56585585eded077b780e9cfd380f9f415
tree1fa580f96dc21e1e470f3c697ec07077bd9ee8cb
parent153dbbc2d5fbda882bc7d9b36b58d1c8e953464c
gfs2_atomic_open(): fix O_EXCL|O_CREAT handling on cold dcache

with the way fs/namei.c:do_last() had been done, ->atomic_open()
instances needed to recognize the case when existing file got
found with O_EXCL|O_CREAT, either by falling back to finish_no_open()
or failing themselves.  gfs2 one didn't.

Fixes: 15a153dc3d67 (GFS2: Add atomic_open support)
Cc: stable@kernel.org # v3.11
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/gfs2/inode.c