mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:30:52 +07:00
3124eb1679
With the previous changes, sysfs regular file code is ready to handle bin files too. This patch makes bin files share the regular file path. * sysfs_create/remove_bin_file() are moved to fs/sysfs/file.c. * sysfs_init_inode() is updated to use the new sysfs_bin_operations instead of bin_fops for bin files. * fs/sysfs/bin.c and the related pieces are removed. This patch shouldn't introduce any behavior difference to bin file accesses. Overall, this unification reduces the amount of duplicate logic, makes behaviors more consistent and paves the road for building simpler and more versatile interface which will allow other subsystems to make use of sysfs for their pseudo filesystems. v2: Stale fs/sysfs/bin.c reference dropped from Documentation/DocBook/filesystems.tmpl. Reported by kbuild test robot. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Kay Sievers <kay@vrfy.org> Cc: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
media | ||
.gitignore | ||
80211.tmpl | ||
alsa-driver-api.tmpl | ||
debugobjects.tmpl | ||
device-drivers.tmpl | ||
deviceiobook.tmpl | ||
drm.tmpl | ||
filesystems.tmpl | ||
gadget.tmpl | ||
genericirq.tmpl | ||
kernel-api.tmpl | ||
kernel-hacking.tmpl | ||
kernel-locking.tmpl | ||
kgdb.tmpl | ||
libata.tmpl | ||
librs.tmpl | ||
lsm.tmpl | ||
Makefile | ||
media_api.tmpl | ||
mtdnand.tmpl | ||
networking.tmpl | ||
rapidio.tmpl | ||
regulator.tmpl | ||
s390-drivers.tmpl | ||
scsi.tmpl | ||
sh.tmpl | ||
stylesheet.xsl | ||
tracepoint.tmpl | ||
uio-howto.tmpl | ||
usb.tmpl | ||
writing_usb_driver.tmpl | ||
writing-an-alsa-driver.tmpl | ||
z8530book.tmpl |