On Mon, Sep 24, 2018 at 03:16:55PM -0700, Omar Sandoval wrote: > From: Omar Sandoval <[email protected]> > > 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 <[email protected]>
Reviewed-by: David Sterba <[email protected]> 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.
