On 05/01/2017 11:26 PM, Zhilong Liu wrote:
declare new function to integrate repeated stat operations, the devname is necessary and the *rdev is optional argument, parse the pointer of dev_t *rdev, if valid, assigned device number to rdev, if NULL, ignores. Signed-off-by: Zhilong Liu <zlliu@xxxxxxxx> --- Assemble.c | 7 ++----- Build.c | 25 ++++--------------------- Incremental.c | 21 ++++----------------- Manage.c | 11 +---------- Monitor.c | 16 ++++------------ mdadm.h | 1 + super-ddf.c | 10 ++++------ super-intel.c | 10 ++++------ util.c | 17 +++++++++++++++++ 9 files changed, 41 insertions(+), 77 deletions(-)
Same comment as for the fstat() version applies here. Cheers, Jes -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html