]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: default to generic_readlink()
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 15:45:04 +0000 (16:45 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 15:45:04 +0000 (16:45 +0100)
commitcc5ed6845e45818fa777f26f0d87ac8884cef18a
tree9dc26cb4603b4c93cd6b5b1bb7b538c30d19e438
parent7682cffeaef252872f5862a05c91348d5a72c10e
vfs: default to generic_readlink()

If i_op->readlink is NULL, but i_op->get_link is set then vfs_readlink()
defaults to calling generic_readlink().

The IOP_DEFAULT_READLINK flag indicates that the above conditions are met
and the default action can be taken.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Documentation/filesystems/porting
Documentation/filesystems/vfs.txt
fs/namei.c
include/linux/fs.h