On Mon, Sep 24, 2018 at 03:16:55PM -0700, Omar Sandoval wrote: > From: Omar Sandoval <osan...@fb.com> > > The only aops we define for symlinks are identical to the aops for > regular files. This has been the case since symlink support was added in > commit 2b8d99a723a3 ("Btrfs: symlinks and hard links"). As far as I can > tell, there wasn't a good reason to have separate aops then, and there > isn't now, so let's just do what most other filesystems do and reuse the > same structure. > > Signed-off-by: Omar Sandoval <osan...@fb.com>
Reviewed-by: David Sterba <dste...@suse.com> Can we also reuse btrfs_inode_operations for btrfs_special_inode_operations ? The only difference is the fiemap operation, so if the special files must not implement that callback, this could be decided inside that.