• T
    sysfs, kernfs: prepare write path for kernfs · 50b38ca0
    Tejun Heo 提交于
    We're in the process of separating out core sysfs functionality into
    kernfs which will deal with sysfs_dirents directly.  This patch
    rearranges write path so that the kernfs and sysfs parts are separate.
    
    kernfs_file_write() handles all boilerplate work including buffer
    management and locking and invokes sysfs_kf_write() or
    sysfs_kf_bin_write() depending on the file type which deals with the
    interaction with kobj store or bin_attribute write method.
    
    While this patch changes the order of some operations, it shouldn't
    change any visible behavior.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    50b38ca0
file.c 28.1 KB