Btrfs: implement inode_operations callback tmpfile
authorFilipe Manana <fdmanana@gmail.com>
Sun, 27 Apr 2014 19:40:45 +0000 (20:40 +0100)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:30 +0000 (17:20 -0700)
commitef3b9af50bfa6a1f02cd7b3f5124b712b1ba3e3c
tree8aeb9ff9803aa2060676c1817ca11f0015d1da1c
parente4ef90ff6198ac58d4c7dbbeae8cc7b24867d1ca
Btrfs: implement inode_operations callback tmpfile

This implements the tmpfile callback of struct inode_operations, introduced
in the linux kernel 3.11, and implemented already by some filesystems. This
callback is invoked by the VFS when the flag O_TMPFILE is passed to the open
system call.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
fs/btrfs/inode.c