]> git.baikalelectronics.ru Git - kernel.git/commit
take fs_pin stuff to fs/*
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 12:39:04 +0000 (08:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:08 +0000 (14:40 -0400)
commit60df0d2dbd347d1618b1afc24b1e2ab4d7d7c5c7
tree6427257fe101016ef07ba28903d65d8f8be8e2ca
parent25a22edff38592777b5cc95ca84ce063e1e9381f
take fs_pin stuff to fs/*

Add a new field to fs_pin - kill(pin).  That's what umount and r/o remount
will be calling for all pins attached to vfsmount and superblock resp.
Called after bumping the refcount, so it won't go away under us.  Dropping
the refcount is responsibility of the instance.  All generic stuff moved to
fs/fs_pin.c; the next step will rip all the knowledge of kernel/acct.c from
fs/super.c and fs/namespace.c.  After that - death to mnt_pin(); it was
intended to be usable as generic mechanism for code that wants to attach
objects to vfsmount, so that they would not make the sucker busy and
would get killed on umount.  Never got it right; it remained acct.c-specific
all along.  Now it's very close to being killable.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/Makefile
fs/fs_pin.c [new file with mode: 0644]
include/linux/acct.h
include/linux/fs_pin.h [new file with mode: 0644]
kernel/acct.c