]> git.baikalelectronics.ru Git - kernel.git/commit
ncpfs: get rid of d_validate() nonsense
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Dec 2014 02:41:47 +0000 (21:41 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Jan 2015 04:16:26 +0000 (23:16 -0500)
commit2b2ca2d68ab870006f5e7a58b908fd9e9e7247da
tree3278906dba789c91609feb98f636538031e61dd8
parenta4866d7c60673a2a689b6b0b96bd12681a66391e
ncpfs: get rid of d_validate() nonsense

What we want is to have non-counting references to children in
pagecache of parent directory, and avoid picking them after a child
has been freed.  Fine, so let's just have ->d_prune() clear
parent's inode "has directory contents in page cache" flag.
That way we don't need ->d_fsdata for storing offsets, so we can
use it as a quick and dirty "is it referenced from page cache"
flag.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ncpfs/dir.c
fs/ncpfs/ncp_fs_i.h
fs/ncpfs/ncplib_kernel.h