diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-14 12:57:55 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-14 12:57:55 -0700 |
commit | b7941fd68de046be58de4d53fe08925fdb9008f0 (patch) | |
tree | d2ec919476da339a8e934192135b90f06f927eb5 /managemon.c | |
parent | 071cfc42580673b149140339a862f90399dc00b5 (diff) | |
download | mdadm-b7941fd68de046be58de4d53fe08925fdb9008f0.tar.gz mdadm-b7941fd68de046be58de4d53fe08925fdb9008f0.tar.xz mdadm-b7941fd68de046be58de4d53fe08925fdb9008f0.zip |
mdmon: cleanup resync_start
We don't need to sprinkle reads of this attribute all over the place,
just once at the entry of read_and_act(). Also, the mdinfo structure
for the array already has a 'resync_start' member, so just reuse that.
Finally, rename get_resync_start() to read_resync_start to make it
consistent with the other sysfs accessors in monitor.c.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'managemon.c')
-rw-r--r-- | managemon.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c index 19effe4..e77f045 100644 --- a/managemon.c +++ b/managemon.c @@ -541,7 +541,6 @@ static void manage_new(struct mdstat_ent *mdstat, new->info.state_fd = sysfs_open(new->devnum, NULL, "array_state"); new->resync_start_fd = sysfs_open(new->devnum, NULL, "resync_start"); new->metadata_fd = sysfs_open(new->devnum, NULL, "metadata_version"); - get_resync_start(new); dprintf("%s: inst: %d action: %d state: %d\n", __func__, atoi(inst), new->action_fd, new->info.state_fd); |