浏览代码

md: update comment for md_allow_write

MD_CHANGE_CLEAN had been replaced with MD_CHANGE_PENDING after
commit 070dc6 ("md: resolve confusion of MD_CHANGE_CLEAN"),
so make the change accordingly.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Guoqing Jiang 9 年之前
父节点
当前提交
abf3508d8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/md/md.c

+ 1 - 1
drivers/md/md.c

@@ -7714,7 +7714,7 @@ EXPORT_SYMBOL(md_write_end);
  * attempting a GFP_KERNEL allocation while holding the mddev lock.
  * attempting a GFP_KERNEL allocation while holding the mddev lock.
  * Must be called with mddev_lock held.
  * Must be called with mddev_lock held.
  *
  *
- * In the ->external case MD_CHANGE_CLEAN can not be cleared until mddev->lock
+ * In the ->external case MD_CHANGE_PENDING can not be cleared until mddev->lock
  * is dropped, so return -EAGAIN after notifying userspace.
  * is dropped, so return -EAGAIN after notifying userspace.
  */
  */
 int md_allow_write(struct mddev *mddev)
 int md_allow_write(struct mddev *mddev)